package com.lytest.springcloud.service;

import org.springframework.stereotype.Component;

@Component
public class FallbackService implements OrderHystrix{
    @Override
    public String paymentInfo_OK(Integer id) {
        return "线程池："+ Thread.currentThread().getName()+" paymentInfo_OK,id: "+id+"\t"+"80超时/异常，请稍后再试";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "线程池："+ Thread.currentThread().getName()+" paymentInfo_TimeOut,id: "+id+"\t"+"80超时/异常，请稍后再试";
    }
}
